import { NextApiRequest, NextApiResponse } from "next";
import IpUtils from "@common/utils/ip";

export default function handler(req: NextApiRequest, res: NextApiResponse) {
    const ip = IpUtils.getIpInfo(req);
    res.status(200).json({ ip });
}